package com.dsh.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dsh.common.utils.PageUtils;
import com.dsh.gulimall.ware.entity.WareSkuEntity;
import com.dsh.gulimall.ware.vo.SkuHasStockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author dsh
 * @email 3090930041@qq.com
 * @date 2022-04-25 22:16:48
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存采购
     * @param skuId
     * @param wareId
     * @param skuNum
     */
    void addStock(Long skuId, Long wareId, Integer skuNum);

    List<SkuHasStockVo> getSkuHasStock(List<Long> skuIds);
}

